﻿using SCZS.Example.DTOModel;
using SCZS.Example.Model.Example;

namespace SCZS.Example.IService
{
    public interface IUserService
    {
        /// <summary>
        /// 根据账号密码查询用户
        /// </summary>
        /// <param name="username"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        Task<Output<SysUserInfo>> QueryUser(string userAccount, string password);

        /// <summary>
        /// 用户注册
        /// </summary>
        /// <param name="user"></param>
        /// <param name="code"></param>
        Task<Output> Register(SysUserInfo user, string code);
    }
}